<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--

Copyright 2021-2022 Steinar Bang

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations
under the License.
-->

<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="fildele.db.liquibase.production">

    <feature name="${karaf-feature-name}">
        <feature>scr</feature>
    </feature>
    <feature name="fildele-db-production" description="fildele production DataSource" version="${project.version}">
        <config name="org.ops4j.datasource-fildele-production">
            osgi.jdbc.driver.name=PostgreSQL JDBC Driver
            dataSourceName=jdbc/fildele
            url=jdbc:postgresql:///fildele
            user=karaf
            password=karaf
            ops4j.preHook=fildeledb
        </config>
        <capability>
            osgi.service;objectClass=javax.sql.DataSource;effective:=active;osgi.jndi.service.name=jdbc/fildele
        </capability>
        <feature>${karaf-feature-name}</feature>
        <feature>pax-jdbc-config</feature>
        <feature>postgresql</feature>
    </feature>
</features>
